package com.isoft.hospital.controller;

import com.isoft.hospital.common.ResponseData;
import com.isoft.hospital.service.YaopinjiaofeiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class YaopinjiaofeiController {
    @Autowired
    private YaopinjiaofeiService service;

    @RequestMapping("/selectAllyaopingjiesua")
    public ResponseData selectAll() {
        ResponseData rd = service.selectAll();
        return rd;
    }
    @GetMapping("/queryBydocid")
    public ResponseData queryByDocid(int doc_id){
        return service.queryByDocid(doc_id);
    }
}

